Skip to content

feat(ui): let the data table name its row header column - #1256

Merged
TheMeinerLP merged 1 commit into
mainfrom
fix-datatable-rowheader
Nov 23, 2026
Merged

TheMeinerLP merged 1 commit into
mainfrom
fix-datatable-rowheader

Conversation

@TheMeinerLP

Copy link
Copy Markdown

Description

The shared data table always drew its first column as the row header. Some tables identify a row by another column: the migration conflicts name the path in the second column. They could not move onto the table without losing that. The table now takes the key of the column that is the row header, and draws it where it sits in the row. Nothing changes for existing tables.

This is the first step of task 5.7 of migrate-content-to-components; the migration step that needs it follows once this is merged.

Type of change

  • feat - new option of an existing component, no visible change

How was this tested?

  • MdDataTable.test.ts gained two tests (a named row header in its own position, the default unchanged), written first and seen failing.
  • npx vitest run src/components src/anchors src/style-gate: all 5409 tests passed.
  • vue-tsc and eslint on the changed files: clean.

Checklist

  • Commit messages follow the Conventional Commits convention
  • Tests cover the change
  • ./gradlew build passes locally (frontend-only change, not run)
  • Existing copyright headers are preserved; new files carry the appropriate header
  • No credentials, tokens or personal data are included in the diff

A table whose identifying value is not in the first column, such as
the migration conflicts, could not use the shared data table. The new
rowHeader prop names the column that is drawn as the row header in its
own position. Without it the first column stays the row header.

Signed-off-by: TheMeinerLP <github@themeinerlp.dev>
@TheMeinerLP
TheMeinerLP added this pull request to the merge queue Nov 23, 2026
Merged via the queue into main with commit 248d838 Nov 23, 2026
39 checks passed
@TheMeinerLP
TheMeinerLP deleted the fix-datatable-rowheader branch November 23, 2026 08:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant